const containers = require.context('@/components/dyform/container/', false, /\.vue$/);
let userComponent = {}
let createFun = function (items, fileName) {
    let comp = items(fileName).default;
    if (!comp) {
        return;
    }
    let arr = comp.name.split('-');
    for (let i = 0; i < arr.length; i++) {
        arr[i] = arr[i][0].toUpperCase() + arr[i].substring(1, arr[i].length);
    }
    let componentName = arr.join('');
    userComponent[componentName] = comp
}

containers.keys().forEach(fileName => {
    createFun(containers, fileName);
});
export default userComponent;